;$(function() {
	var id = $("#id").val();
	getInfo(id);
})

function getInfo(id){
	   $.ajax({
        url: ctxPath+"/agency/user/findById/"+id,
        type: 'GET',
        success: function(d){
        	var success = d.success;
        	 if(success==true){
        	 var data=  d.data;
        	 if(data!=null){
        		 $("#nickname").html(data.nickname);
        		 $("#phone").html(data.phone);
        		 $("#username").html(data.username);
        		 $("#deptName").html(data.deptUser.deptName);
        		 $("#sex").html(data.userExtendEO.sexName);
        		 $("#isParty").html(data.userExtendEO.partyName);
        		 $("#joinPartyDate").html(data.userExtendEO.joinPartyDate);
        		 $("#education").html(data.userExtendEO.educationName);
            		 if(data.fileId!=null){
               			 var img = "";
               			 var url="/file/showImage/";
               				 var temp = url+data.fileId;
               				 img+='<li>'
                 			+'<a href="'+temp+'" data-type="image">'
            				+'<img src="'+temp+'" alt="" width="100px;">'
            			    +'</a>'
            			    +'</li>'  ;
               	    $("#dropzone").html(img);
               	 $('.plusview').plusview({
             		height : 400,
             		hide : "hide",
             		show : "show"
             	});
               	}	 
        	 }
        	}
        } 
    });
}
